package com.wtwd.wtwddevice.listener;


import com.wtwd.wtwddevice.listener.deviceServerMsg.handler.IMsgHandler;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class ReceiveMsgServiceContext {
   private  final Map<String, IMsgHandler> map=new HashMap<>();
   public IMsgHandler getIReceiverHandler(String key){return map.get(key);}
   public void putIReceiverHandler(String key,IMsgHandler iReceiverHandler){map.put(key,iReceiverHandler);};
}
